package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.cinema.domain.Goods;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 订单卖品对象 order_goods
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("order_goods")
public class OrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;
    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;
    /** 卖品编码 */
    @Excel(name = "卖品编码")
    private String goodsCode;
    /** 卖品数量 */
    @Excel(name = "卖品数量")
    private Integer goodsCount;
    /** 分类编码 */
    @Excel(name = "分类编码")
    private String categoryCode;
    /** 活动编码 */
    @Excel(name = "活动编码")
    private String activityCode;

    private List<OrderGoodsCombo> comboList;

    private Goods goods;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setGoodsCode(String goodsCode)
    {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCode()
    {
        return goodsCode;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public void setCategoryCode(String categoryCode)
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode()
    {
        return categoryCode;
    }
    public void setActivityCode(String activityCode)
    {
        this.activityCode = activityCode;
    }

    public String getActivityCode()
    {
        return activityCode;
    }

    public List<OrderGoodsCombo> getComboList() {
        return comboList;
    }

    public void setComboList(List<OrderGoodsCombo> comboList) {
        this.comboList = comboList;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("goodsCode", getGoodsCode())
            .append("goodsCount", getGoodsCount())
            .append("categoryCode", getCategoryCode())
            .append("activityCode", getActivityCode())
            .toString();
    }
}
